package com.javapda.c328r.command.impl;

import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * 
 * 
 */
public class InitialComediaCommand extends AbstractComediaCommand {
	private transient String toString;

	public String toString() {
		if (toString == null) {
			toString = new ToStringBuilder(this)
							.append("Color Type", getPreviewColorType())
							.append("Preview Resolution",getPreviewResolution())
							.append("Preview JPEG Resolution", getPreviewJpegResolution())
							.toString();
		}
		return toString;
	}
	public InitialComediaCommand() {
		super(new InitialComediaCommandId());
	}
	public InitialComediaCommand(int[] initInfo) {
		this();
		setPreviewColorType(initInfo[3]);
		setPreviewResolution(initInfo[4]);
		setPreviewJpegResolution(initInfo[5]);
	}
	public void setPreviewColorType(int colorType) {
		setParameter2(colorType);
	}
	public int getPreviewColorType() {
		return getParameter2();
	}
	public void setPreviewResolution(int resolution) {
		setParameter3(resolution);
	}
	public int getPreviewResolution() {
		return getParameter3();
	}
	public void setPreviewJpegResolution(int jpegResolution) {
		setParameter4(jpegResolution);
	}
	public int getPreviewJpegResolution() {
		return getParameter4();
	}
	
	

}
